<!--<?php
print <<<EOT
-->

<script src="../css/edit.js"></script>
<script>
<!--
function showSelect(id) {
    getAdminEdit('edit_area', '21', id);
}


function validate2(form) {

	if(form.select2.value == "") {
		showMsg('msg_area', 'Must set one type');
		form.select2.focus();
		return false;
	}

	return true;
}

function validate(form) {
    var typeselected = 0;
    for (var i=0; i<form.importtype.length; i++) {
        if (form.importtype[i].checked) {
            typeselected = 1;
            break;
        } 
    }
    if (typeselected == 0) {
        showMsg('msg_area', 'Must select one type');
		form.importtype[0].focus();
		return false;
    }
    //var inputvalue = form.importtype[i].value;
	
	if(form.upload_file.value == "") {
		showMsg('msg_area', 'Must set one file');
		form.upload_file.focus();
		return false;
	}

	return true;
}


function importFormDisplay()
{
    var import_form=document.getElementById("import_form");
  
	if (import_form.style.display == "block")
	{		
		import_form.style.display = "none";
	}
	else
	{		
		import_form.style.display = "block";
	}
}

function exportFormDisplay()
{   

	var export_form=document.getElementById("export_form");
	
	if (export_form.style.display == "block")
	{		
		export_form.style.display = "none";
	}
	else
	{		
		export_form.style.display = "block";
	}
	
}

function InputFormDisplay()
{
	if (input_form.style.display == "block")
	{		
		input_form.style.display = "none";
	}
	else
	{		
		input_form.style.display = "block";
	}
}

//-->
</script>

<!--Content Start-->
<table width="95%" border="0" align="center">
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr><td><span id="msg_area"></span>&nbsp;</td></tr>
  <tr> 
    <td>
      <table width="80%" border="0" align="left" cellpadding="3" cellspacing="3">
        
      <tr height="30"><td><!--a href="export_excel.php?act=1"--><a href="javascript:exportFormDisplay();"><span class="inventory_list">Export</span></a></td></tr>
      <tr><td>      
      <div id="export_form" style="display: none;">         
	  <form action="export_Product.php" method="post" name="form2" onSubmit="return validate2(this)">
      <!--<form action="export_excel.php" method="post" name="form2" onSubmit="return validate2(this)">      -->
      <table width="60%" align="left">    
      <tr><td>
      <table width="95%" border="0" align="center">
        <tr> 
          <td align="right">&nbsp; </td>
        </tr>
        <tr> 
          <td>
            <table border="0" cellspacing="0" cellpadding="2">
              <tr> 
                <td>
                  Please select export type:<br><br>
                  <select name="typeselect" class="form" onchange="showSelect(this.value)">
					<option value="" selected>---Please Select---</option>
					<option value="1">Category</option>
					<option value="2">Inventory</option>					
				  </select>
				  &nbsp;&nbsp; <span id="edit_area"></span>
				  
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      </td></tr>
      </table>
      </form>
      </div>
      </tr>    
      
      <tr height="30"><td><a href="javascript:importFormDisplay();"><span class="inventory_list">Import</span></a></td></tr>
      <tr height="30"><td>
      <div id="import_form" style="display: none;">       
           
      <form action="import_excel.php" method="post" name="form1" enctype="multipart/form-data" onSubmit="return validate(this)">
       <!-- <form action="Timport_excel.php" method="post" name="form1" enctype="multipart/form-data" onSubmit="return validate(this)">-->
      <table width="60%" align="left">
    
      <tr><td>
      <table width="95%" border="0" align="center">
        <tr> 
          <td align="right">&nbsp; </td>
        </tr>
        <tr> 
          <td>
            <table border="0" cellspacing="0" cellpadding="2">
              
              <tr>
                <td colspan=2>                  
                  <input type="radio" name="importtype" value="1" />
                  Category&nbsp;&nbsp;
                  <input type="radio" name="importtype" value="2" />
                  Inventory&nbsp;&nbsp;
                  <input type="radio" name="importtype" value="3" />
                  Picture&nbsp;&nbsp;
                  <br><br>
                  <!--div id="input_form" style="display: none;"-->
                  <input type="file" class="text" name="upload_file" size="45"> 
                  <br><br>
                  <input type="image" src="../images/admin/bt_cancel.gif" width="78" height="23" onclick="javascript:importFormDisplay();return false;"> 
                  <input type="image" src="../images/admin/bt_save.gif" width="76" height="22" onclick="form1.submit"> 
                  <!--/div-->
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
     </td></tr>
    

      </table>
      </form>
      </div>
      
      </td></tr>
      
      
      </table>
      
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p>
      <p>&nbsp;</p></td>
  </tr>
</table>
<!--Content End-->

<!--
EOT;
?>-->